package com.sservice.commonBusiness.controller.admin;

import com.sservice.base.entity.dto.BaseResult;
import com.sservice.commonBusiness.type1.Category_TYPE;
import com.sservice.commonBusiness.type1.DataR_TYPE;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/admin/const/")
public class ConstantController {

    @RequestMapping(value = "category", method = RequestMethod.GET)
    @ResponseBody
    public BaseResult category() {
        return new BaseResult(true, Category_TYPE.toMap());
    }

    @RequestMapping(value = "dataR", method = RequestMethod.GET)
    @ResponseBody
    public BaseResult dataR() {
        return new BaseResult(true, DataR_TYPE.toMap());
    }

}
